import request from '@/utils/request'

// 查询中介机构服务团队列表
export function listMediationTeam(query) {
  return request({
    url: '/team/mediationTeam/list',
    method: 'get',
    params: query
  })
}

// 查获取聘用记录部门列表
export function findDeptList(query) {
  return request({
    url: '/team/mediationTeam/findDeptList',
    method: 'get',
    params: query
  })
}

// 查询中介机构服务团队详细
export function getMediationTeam(id) {
  return request({
    url: '/team/mediationTeam/' + id,
    method: 'get'
  })
}

// 保存中介机构服务团队
export function saveMediationTeam(data) {
  return request({
    url: '/team/mediationTeam/save',
    method: 'post',
    data: data
  })
}

// 删除中介机构服务团队
export function delMediationTeam(id) {
  return request({
    url: '/team/mediationTeam/' + id,
    method: 'delete'
  })
}

// 导出中介机构服务团队
export function exportMediationTeam(query) {
  return request({
    url: '/team/mediationTeam/export',
    method: 'get',
    params: query
  })
}
